package com.ddxcloud.movie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ddxcloud.movie.entity.Order;
import com.ddxcloud.movie.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    IPage<OrderVO> getOrderList(Page<OrderVO> page, Long userId);

    OrderVO getOrderInfo(Long orderId);

    Order getOrderByOrderSn(String orderSn);
}
